package org.yang;

public class Main {
	public static void main(String[] args) {
		Queue q =new Queue();
		Producer[] pa = new Producer[10];
		for(int i=0;i<10;i++){
			pa[i] = new Producer(i,q);
			Thread t = new Thread(pa[i]);
			t.start();
		}
		Customer[] ca = new Customer[10];
		for(int i=0;i<10;i++){
			ca[i] = new Customer(i,q);
			Thread t = new Thread(ca[i]);
			t.start();
		}
	}
}
